/**
 * 
 */
package com.broadtext.rms.system.service;

import java.util.List;

import com.broadtext.common.exp.DaoException;
import com.broadtext.common.service.IEntityService;
import com.broadtext.rms.system.model.SysResource;

/**
 * @author guhuajie
 *
 */
public interface ISysResourceService extends IEntityService<SysResource> {
	
	/**
     * 
     * <p>Description: 获取资源树</p>
	 * @param type 
     * @return 资源树列表
     * @throws DaoException dao异常
     */
    public List<SysResource> getResourceTree(String type) throws DaoException;
    
    /**
     * <p>Description: 删除资源</p>
     * @param resIdArray 资源id
     * @param userName 操作人
     * @throws DaoException 异常
     */
    public void delSysResource(String[] resIdArray, String userName) throws DaoException;

    /**
     * <p>Description: 更新资源</p>
     * @param resource 资源model
     * @return 更新结果
     * @throws DaoException 异常
     */
    public String updateSysResource(SysResource resource) throws DaoException;

    /**
     * <p>Description: 插入资源</p>
     * @param resourceo 资源model 
     * @return  操作结果
     * @throws DaoException 异常
     */
    public String insertSysResource(SysResource resource) throws DaoException;


}
